package com.cx.auth.mapper;

import com.cx.auth.vo.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangcx
 * @Description TODO
 * @date 2022/6/6 16:36
 * @email zhangcx@bluemoon.com.cn
 */
@Mapper
public interface SysRoleMapper {
    SysRole findRoleById(@Param("id") Long id);

    List<SysRole> findRolesByUserId(@Param("userId") Long userId);
}
